package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_witch_draw_activity_draw", autoSave = true, dataUpload = true, eventName = "witch",uploadCk = true,desc = "魔女之夜抽奖")
public class LogWitchDrawActivityDraw extends ServerBaseLog {
    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityId")
    private int activityId;
    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;
    @FieldTypeAnnotation(desc = "抽奖结果id", dataAttribute = "witch_result")
    private int drawResultId;
    @FieldTypeAnnotation(desc = "抽奖结果类型", dataAttribute = "witch_resultid")
    private int drawResultType;
    @FieldTypeAnnotation(desc = "消耗免费次数")
    private int useFreeCount;
    @FieldTypeAnnotation(desc = "旧积分")
    private long oldScore;
    @FieldTypeAnnotation(desc = "积分奖励", dataAttribute = "witch_score")
    private long score;
    @FieldTypeAnnotation(desc = "新积分")
    private long newScore;
    @FieldTypeAnnotation(desc = "道具奖励", dataAttribute = "witch_get")
    private String reward;


    public LogWitchDrawActivityDraw(int activityId, long userId, int drawResultId, int drawResultType, int useFreeCount, long oldScore, long score, long newScore, String reward, Date operateTime) {
        this.activityId = activityId;
        this.userId = userId;
        this.drawResultId = drawResultId;
        this.drawResultType = drawResultType;
        this.useFreeCount = useFreeCount;
        this.oldScore = oldScore;
        this.score = score;
        this.newScore = newScore;
        this.reward = reward;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getDrawResultType() {
        return drawResultType;
    }

    public void setDrawResultType(int drawResultType) {
        this.drawResultType = drawResultType;
    }

    public int getUseFreeCount() {
        return useFreeCount;
    }

    public void setUseFreeCount(int useFreeCount) {
        this.useFreeCount = useFreeCount;
    }

    public long getOldScore() {
        return oldScore;
    }

    public void setOldScore(long oldScore) {
        this.oldScore = oldScore;
    }

    public long getScore() {
        return score;
    }

    public void setScore(long score) {
        this.score = score;
    }

    public long getNewScore() {
        return newScore;
    }

    public void setNewScore(long newScore) {
        this.newScore = newScore;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public int getDrawResultId() {
        return drawResultId;
    }

    public void setDrawResultId(int drawResultId) {
        this.drawResultId = drawResultId;
    }
}
